var events = require('events');
var util = require('util');
var Emitter = events.EventEmitter;

function Radio(inforObj){
    this.name = inforObj.name;
    this.frequency = inforObj.frequency;
    this.start = function(){
        console.log('"'+this.name+'" '+this.frequency+" opened");
    }
    this.stop = function(){
        console.log('"'+this.name+'" '+this.frequency+" closed");
    }
}

util.inherits(Radio, Emitter);
module.exports = Radio;